/**
 * 
 */
package com.gr.staffpm.pages.dashboard;

import org.apache.wicket.Component;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;

import com.gr.staffpm.model.StringModel;


/**
 * @author Graham Rhodes 12 Mar 2011 15:10:55
 */
public class Gadget extends Panel {

    private static final long serialVersionUID = 1L;
    private final Label gadgetName;
    private double height = 0;

    public Gadget(String id, String label, Component content) {
        super(id);

        gadgetName = new Label("gadgetName", new StringModel(label));
        add(gadgetName);

        add(content);

    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getHeight() {
        return height;
    }

}
